﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


namespace ZGameFramework
{


    public static class ListExpand 
    {
        public static void Shuffle<T>(this List<T> list)
        {
            if (null == list) { return; }

            for (int i = 0, count = list.Count; i < count; i++)
            {
                int rand = Random.Range(i, count);
                T temp = list[i];
                list[i] = list[rand];
                list[rand] = temp;
            }
        }
    }
}
